package vargapeter.bet;

/**
 * Az események ősosztálya. Erről tudhat a szerver illetve a kliens is. 
 * Ez közös kód, aminek a protokollban lenne helye, ha külön gépen futnának a szerverek és a kliensek. 
 */
public class SportEventBase {
	public static final String DRAW = "X";
	public static final String AWAY = "a";
	public static final String HOME = "h";
	protected String eventName;
	protected int homeOdds;
	protected int awayOdds;
	protected int drawOdds;
	protected boolean ended;
	private boolean betAllowed = true;
	
	public SportEventBase(String eventName, int homeOdds, int awayOdds, int drawOdds) {
		super();
		this.eventName = eventName;
		this.homeOdds = homeOdds;
		this.awayOdds = awayOdds;
		this.drawOdds = drawOdds;
	}

	public String getEventName() {
		return eventName;
	}

	public int getHomeOdds() {
		return homeOdds;
	}

	public int getAwayOdds() {
		return awayOdds;
	}

	public int getDrawOdds() {
		return drawOdds;
	}

	public boolean isBetAllowed() {
		return betAllowed;
	}

	public void setBetAllowed(boolean betAllowed) {
		this.betAllowed = betAllowed;
	}
}
